// src/api/video/avatar.js
import request from '@/utils/request'

// 获取虚拟人物列表
export function getAvatarList(params) {
    return request({
        url: '/video/video/avatar/list',
        method: 'get',
        params
    })
}

// 获取虚拟人物统计
export function getAvatarStats() {
    return request({
        url: '/video/video/avatar/stats',
        method: 'get'
    })
}

// 获取虚拟人物
export function getAvatarById(id) {
    return request({
        url: `/video/video/avatar/${id}`,
        method: 'get'
    })
}

// 手动触发同步
export function triggerSync() {
    return request({
        url: '/video/video/avatar/sync',
        method: 'post'
    })
}

// 获取排除名单列表
export function getExcludeList(params) {
    return request({
        url: '/video/video/avatar/exclude/list',
        method: 'get',
        params
    })
}

// 添加排除名单
export function addExclude(data) {
    return request({
        url: '/video/video/avatar/exclude',
        method: 'post',
        data
    })
}

// 删除排除名单
export function removeExclude(id) {
    return request({
        url: `/video/video/avatar/exclude/${id}`,
        method: 'delete'
    })
}

// 批量删除排除名单
export function batchDeleteExclude(ids) {
    return request({
        url: '/video/video/avatar/exclude/batch',
        method: 'delete',
        data: { ids }
    })
}